package com.jk.service;

import com.jk.DiscussBean;
import com.jk.LookBean;
import com.jk.MovieBean;
import com.jk.UserBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.text.ParseException;
import java.util.List;


@FeignClient(value = "provider-ticket")
public interface SecUserService {
    /**
     * @Author: 孙尔超
     * @Description: 查看电影详情
     * @Date: 2021/5/25 11:00
     * @param ids
     * @Return: com.jk.MovieBean
     **/
   @GetMapping("buy/ticket")
    MovieBean ticket(@RequestParam Integer ids);
    /**
     * @Author: 孙尔超
     * @Description: 新增评论
     * @Date: 2021/5/21 17:07
     * @param
     * @Return: void
     **/
    @PostMapping("buy/discuss")
    void discuss(@RequestParam String content,@RequestParam Integer ids,@SpringQueryMap UserBean user,@RequestParam Integer star);
    /**
     * @Author: 孙尔超
     * @Description: 查看评论
     * @Date: 2021/5/21 17:07
     * @Return: java.util.List<com.jk.DiscussBean>
     **/
    @RequestMapping("buy/findDiscuss")
    List<DiscussBean> findDiscuss(@RequestParam Integer ids);

    /**
     * @Author: 孙尔超
     * @Description: 点赞
     * @Date: 2021/5/21 17:28
     * @param ids
     * @Return: void
     **/
    @RequestMapping("buy/like")
    void like(@RequestParam String ids,@RequestParam Integer give,@RequestParam String id,@SpringQueryMap UserBean user);
/**
 * @Author: 孙尔超
 * @Description: 评分倒叙
 * @Date: 2021/5/23 21:43
 * @Return: java.util.List<com.jk.MovieBean>
 **/
   @RequestMapping("buy/monthlyFocus")
    List<MovieBean> monthlyFocus();
   /**
    * @Author: 孙尔超
    * @Description: 想看人数排序
    * @Date: 2021/5/23 21:43
    * @Return: java.util.List<com.jk.MovieBean>
    **/
 @RequestMapping("buy/expect")
    List<MovieBean> expect();
 /**
  * @Author: 孙尔超
  * @Description: 票房排序
  * @Date: 2021/5/23 21:43
  * @Return: java.util.List<com.jk.MovieBean>
  **/
 @RequestMapping("buy/boxoffice")
 List<MovieBean> boxoffice();
    /**
     * @Author: 孙尔超
     * @Description: 查询电影的所有演员
     * @Date: 2021/5/25 15:14
     * @param ids
     * @Return: java.util.List<com.jk.MovieBean>
     **/
@RequestMapping("buy/findActor")
    List<MovieBean> findActor(@RequestParam Integer ids);
/**
 * @Author: 孙尔超
 * @Description:查询评分的总条数
 * @Date: 2021/5/25 16:32
 * @param ids
 * @Return: java.lang.String
 **/
    @RequestMapping("buy/scorecount")
    Integer scorecount(@RequestParam Integer ids);
/**
 * @Author: 孙尔超
 * @Description: 查询相关电影
 * @Date: 2021/6/6 21:05
 * @param typeid
 * @Return: java.util.List<com.jk.MovieBean>
 **/
@RequestMapping("buy/relatedMovie")
    List<MovieBean> relatedMovie(@RequestParam String typeid);
/**
 * @Author: 孙尔超
 * @Description: 上映电影
 * @Date: 2021/6/7 16:07
 * @Return: void
 **/
@RequestMapping("buy/show")
    void show() throws ParseException;
/**
 * @Author: 孙尔超
 * @Description: 平均评分
 * @Date: 2021/6/7 22:43
 * @Return: java.lang.Double
 **/
@RequestMapping("buy/star")
    Double star(@RequestParam Integer ids);
/**
 * @Author: 孙尔超
 * @Description: 想看
 * @Date: 2021/6/8 11:08
 * @param ids
 * @param user
 * @Return: com.jk.LookBean
 **/
@RequestMapping("buy/havaLook")
    LookBean havaLook(@RequestParam Integer ids, @SpringQueryMap UserBean user);
/**
 * @Author: 孙尔超
 * @Description: 点击想看
 * @Date: 2021/6/8 12:10
 * @param ids
 * @param user
 * @Return: void
 **/
@RequestMapping("buy/loveLook")
    void loveLook(@RequestParam Integer ids,@SpringQueryMap UserBean user);
/**
 * @Author: 孙尔超
 * @Description: 点击已想看
 * @Date: 2021/6/8 12:10
 * @param ids
 * @param user
 * @Return: void
 **/
@RequestMapping("buy/loveLooks")
    void loveLooks(@RequestParam Integer ids,@SpringQueryMap UserBean user);
}
